package com.hibase.upms.entity.user.vo;

import com.hibase.core.web.annotation.HibaseValid;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

import java.util.List;

/**
 * @author ChrisCui
 * @date 2019-4-18
 */
@Data
@ApiModel("添加/移除用户角色vo")
@HibaseValid
public class MdsUserRoleOpVO {

    @NotEmpty(message = "请选择用户")
    @ApiModelProperty(value = "用户id")
    private String userId;

    @NotEmpty(message = "请至少选择一个角色")
    @ApiModelProperty(value = "角色id集合")
    private List<String> roleId;
}
